/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 发票邮寄登记 (OEM)

// 查询	/invoiceRelevant/selectMail
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/selectMail`, params)

// 详情  /invoiceRelevant/getMailById
export const queryById = (id) => axios.get(`${SERVER.WHOLESALES}/invoiceRelevant/getMailById?id=${id}`)


// 下发 /invoiceRelevant/mailIssued
export const mailIssued = (ids) => axios.get(`${SERVER.WHOLESALES}/invoiceRelevant/mailIssued?ids=${ids}`)

// 取消 /invoiceRelevant/mailCancel
export const mailCancel = (ids) => axios.get(`${SERVER.WHOLESALES}/invoiceRelevant/mailCancel?ids=${ids}`)


// 确认 /invoiceRelevant/mailConfirm
export const mailConfirm = (id) => axios.get(`${SERVER.WHOLESALES}/invoiceRelevant/mailConfirm?id=${id}`)
